<?php
class CommentWebsitesViewModel extends ViewModel {
	public $viewFields = array(
		'Comment'=>array('id', 'types', 'name', 'member_id', 'ip', 'add_time', 'target_id', 'content', 'status', 'parent_id', 'star_count', 'good', 'bad', '_type'=>'LEFT'),
		'Websites'=>array('name'=>'web_name', 'domain'=>'web_domain', '_on'=>'Comment.target_id=Websites.id'),
	);
}